<template>
	<view class="container">
		<view class="success-icon">
			<image :src="Core.globalImgUrlBussiness+'/R_authentication/renzheng@2x.png'" mode="aspectFill"></image>
		</view>
		<view class="main-title">恭喜您注册成功</view>
		<view class="small-title">接下来请完成信息认证</view>
		<view class="tab">
			<view class="end-title">
				<view :class="{btna:btnnum == 0}">身份认证</view>
				<view @tap="change(1)" :class="{btna:btnnum == 1}">企业认证</view>
			</view>
			<view class="end-cont" :class="{dis:btnnum == 0}">
				<view class="img-group">
					<view class="li" @click="UploadFile(1)">
						<view class="img">
							<image v-if="faceimg==''" :src="Core.globalImgUrlBussiness+'/R_authentication/zheng@2x.png'" mode="aspectFill"></image>
							<image v-else :src="faceimg" mode="aspectFill"></image>
						</view>
						<view class="name">身份证人像面</view>
					</view>
					<view class="li" @click="UploadFile(2)">
						<view class="img">
							<image v-if="backimg==''" :src="Core.globalImgUrlBussiness+'/R_authentication/fan@2x.png'" mode="aspectFill"></image>
							<image v-else :src="backimg" mode="aspectFill"></image>
						</view>
						<view class="name">身份证国徽面</view>
					</view>
				</view>

				<view class="info">
					<view class="line">
						<view class="name">真实姓名</view>
						<view class="main">{{username}}
							<text v-if="username==''? true :false" class="moren">请上传身份证</text>
						</view>
					</view>

					<view class="line">
						<view class="name">身份证号</view>
						<view class="main">{{idcard}}
							<text v-if="idcard==''? true :false" class="moren">请上传身份证</text>
						</view>
					</view>
				</view>
			</view>

		</view>
		<view class="footer">
			<view class="tips">
				<view class="line">我们将严格保密您提交的信息</view>
				<view class="line">如有问题请联系客服：
					<text class="orange" @click="callPhone('4000909987')">4000909987</text>
				</view>
			</view>
			<view class="sub-btn">
				<!-- 高亮 -->
				<image v-if="sub" :src="Core.globalImgUrlBussiness+'/R_authenticationPersonal/tijiao@2x.png'" 
				mode="widthFix" @click="upUserInfo"></image>
				<!-- 灰色 -->
				<image v-if="!sub" :src="Core.globalImgUrlBussiness+'/R_authentication/tijiao-hui@2x.png'" mode="widthFix"></image>
			</view>
		</view>
	</view>
</template>

<script src="./authentication.js"></script>

<style lang="scss" scpoed>
	@import './authentication.scss';
</style>
